﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using QS.Logic.Objects;
using Microsoft.Xna.Framework;
using QS.Game.Logic.Objects.common;

namespace QS.Game.Logic.Physics
{
    class QCenterForce : QAbstractForce
    {
        public QCenterForce(QPhysicsObject physicsObject)
            : base(physicsObject)
        {
        }

        protected override void updateForce()
        {
            Vector3 centerPos = Vector3.Zero;
            Vector3 delta = centerPos - this.PhysicsObject.Position;
            PhysicsObject.Force += delta * 0.00001f;
        }
    }
}
